<?php

Configure::write('License.modules.events', 'Events Addon');

function checkSessionKeyForEvents()
{
	return true;	//@todo remove this when proper license handling for events is added
	//return checkSessionKey('events');
}

Configure::write('indexMethods.EventAsset', array(
		'my' => array(
				'method' =>'__myGallery',
				'title'=>('My Gallery')
		),
		'user' =>array(
				'method' =>'__userGallery',
		),
		'event' => array(
				'method' => '__eventGallery'
		)
));


Configure::write('indexMethods.Events', array(
	'new' =>array(
		'method' => '__newEvents',
		'title' => ('New Events')
	),
	'my' => array(
		'method' =>'__myEvents',
		'title'=>('My Events')
	),
	'user' =>array(
		'method' =>'__userEvents'
	),
	'myfavorite'=>array(
		'method' =>'__userFavoriteEvents',
		'title'=>('My Favorites')
	),
	'favorite'=>array(
		'method' =>'__userFavoriteEvents',
	),
	'most_viewed' => array(
		'method' =>'__mostViewedEvents',
		'title'=>('Most Viewed Events')
	),
	'category'=>array(
		'method' =>'__categoryEvents'
	),
	'featured' => array(
		'method' =>'__featuredEvents',
		'title'=>('Featured Events')
	),
	'tags' => array(
		'method' =>'__tagEvents',
		'title'=>('Tags')
	),
	'advancedSearch'=>array(
		'method'=>"__advancedSearchResuts",
		'title'=> ("Advanced Search"),
	),
	'search'=>array(
		'method'=>"__search",
		'title'=> ("Search"),
	),
	'searchLocation'=>array(
		'method'=>"__searchLocation",
		"title"=>"Search"
	)
));